From: Mary Boetcher, mary_boetcher@quickmail.apple.com
Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
Mail*LinkĀ® SMTP RE>Linking question
>>Is there a way to specify which types of data are valid for a link? When
>>the user does a drag, the Frame's CanAcceptDrop method is called.
>>However, if the user does a copy and then a PasteAs, I see no way to
>>tell OpenDoc I am not interested in the data that is in the clipboard. If I
>>have a non-embedding part, I don't want to have a link to data that I
>>cannot deal with. So how do I tell OpenDoc not to enable the Link option
>>when there is a incompatible data type?
Override FW_CSelection::CanPasteAsLink to change settings in the Paste As dialog. Return false to disallow linking entirely. The value of 'setting' should be set to kODPasteAsMergeOnly (the default) if you don't want pasted data to be embedded. CanPasteAsLink is called for PasteAs both from the clipboard and from drag-and-drop.